package edu.ynu.se.xiecheng.achitectureclass.auth.dao;

import edu.ynu.se.xiecheng.achitectureclass.auth.entity.User;
import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import org.springframework.stereotype.Repository;

import java.util.Optional;

@Repository
public interface UserDAO extends LogicDAO<User, Long> {
    Optional<User> findByUsername(String username);
} 